<template>
    <div>
        <h1>RxJS Demo</h1>
        <button @click="changeTitle">Change Title</button>
    </div>
</template>

<script setup lang="ts">

import { TitleService } from './TitleService';

const service = new TitleService();

function changeTitle(e) {
    console.log(e);
    service.setTitle('New Title');
}

</script>